﻿using System;

namespace Simple.Common.EntityFrameworkCore.Entities
{
    public class FullAggregateRoot<TKey> : Entity<TKey>, ICreateAggregateRoot, IUpdateAggregateRoot, IDeleteAggregateRoot, IIsDeleted
    {
        /// <summary>
        /// 是否删除
        /// </summary>
        public virtual bool IsDeleted { get; set; }
        /// <summary>
        /// 删除人
        /// </summary>
        public virtual Guid? DeletedById { get; set; }
        /// <summary>
        /// 删除时间
        /// </summary>
        public virtual DateTime? DeletedTime { get; set; }
        /// <summary>
        ///创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public Guid? CreateById { get; set; }
        /// <summary>
        /// 最后修改人
        /// </summary>
        public Guid? LastUpdatedById { get; set; }
        /// <summary>
        /// 最后修改时间
        /// </summary>
        public DateTime? LastUpdatedTime { get; set; }
    }
}
